package create.abstractFactory;


import org.junit.Test;

/**
 * 抽象工程模式
 * Created by hmily on 2017/9/6.
 */
public class TestMain {

    @Test
    public void TestAbstractPattner(){
        Factory f1 = new BeefFactory();
        f1.getProduct().eat();
        Factory f2 = new RiceFactory();
        f2.getProduct().eat();
    }
}
